using System.Reflection;

namespace System.Utility.Data.Validation
{
	[AttributeUsage(AttributeTargets.Property)]
	[Serializable]
	public abstract class ValidatorAttribute : Attribute
	{
		public string ErrorMsg
		{
			get;
			set;
		}

		public string Text
		{
			get;
			set;
		}

		protected ValidatorAttribute()
		{
		}

		public abstract Validator GetValidator(PropertyInfo propertyInfo);
	}
}